<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="style/admin.css" />
<link rel="stylesheet" type="text/css" href="style/global.css" />
<link rel="stylesheet" type="text/css" href="style/tip.css" />
<title>咨询反馈</title>
</head>
<body>
	<div id="wrap">
    	<div id="public_head"></div>
        <div class="m_revise zx_list" style="width: 98%;">
        	<ul class="zl_List">
            	<li><span></span><b>咨询人：</b><?php echo $askinfo['NAME']?></li>
                <li><b>提交时间：</b><?php echo $askinfo['ASK_TIME']?></li>
                <li><b>科室：</b><?php echo $alldep[$askinfo['DEP_NO']]?></li>
                <li><b>医生：</b><?php echo $alldoc[$askinfo['DOC_NO']]?></li>
                <div class="clear"></div>
            </ul>
            <ul>
            	<li><b>咨询内容：</b></li>
                <li id="askcon"><?php echo $askinfo['CONTENT']?></li>
                <div class="clear"></div>
            </ul>
        </div>
        <div class="m_revise zx_list" style="width: 98%;">
        	<ul>
            	<li><b>回答内容：</b></li>
                <li><textarea name="" cols="75" class='askinfo' rows="10"><?php echo $answerinfo['CONTENT']?></textarea></li>
                <li>
                	<input class="btn_save" name="add_ask" type="button" value=''/> &nbsp;
                	<input type="hidden" id='edit' value='<?php echo $answerinfo['ANSWER_ID']?>'/>
                	<input class="btn_gray" name="" type="button" value="返回" onclick="location.href=T.getCookie('goback_ask');T.delCookie('goback_ask');"/>
                </li>
                <div class="clear"></div>
            </ul>
        </div>
    </div>
</body>
</html>
<script src="/js/xheditor/jquery/jquery-1.4.4.min.js"></script>
<script src="/js/boot.js"></script>
<script src="/js/tip.js"></script>
<script src="/js/add_public_head.js" type="text/javascript"></script>
<script  type="text/javascript">
	$('.btn_save').click(function(){
		var t=this;
		if($('.askinfo').val()!=''){
			$.ajax({
				url:'/index.php?c=feed&a=zixunList&id=<?php echo $id;?>',
				data:{'pid':$('#edit').val(),'uid':'<?php echo $askinfo['PATIENT_ID']?>','name':'<?php echo $askinfo['NAME']?>','dep':'<?php echo $askinfo['DEP_NO']?>','doc':'<?php echo $askinfo['DOC_NO']?>','askcon':$('.askinfo').val()},
				type:'post',
				dataType:'json',
				success:function(de){
					if(de){
						switch(de.code){
							case 1000:T.addTop(lang[de.msg]);break;
							default:T.addTop(t.lang['fail'])
						}
						$('#edit').val(de.pid);
					}
				}
			})
		}else{
			alert('请输入回复的内容')
		}
	})
</script>